package com.gm.census.model.pojo;

import java.util.Date;

import javax.persistence.Id;

import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Parent;

public class Note {

	public Note() {
	};
	public Note(Date date, String publisher, String text, Key<Entry> parent) {
		this.date = date;
		this.publisher = publisher;
		this.text = text;
		this.parent = parent;
	}
	@Id
	private Long id;
	private Date date;
	private String publisher;
	private String text;
	@Parent
	private Key<Entry> parent;
	
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getPublisher() {
		return publisher;
	}
	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public Key<Entry> getParent() {
		return parent;
	}
	public void setParent(Key<Entry> parent) {
		this.parent = parent;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}

}
